package com.dragon.modules.yuegou.entity.order;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * 订单积分信息实体类<br>
 * 对应的表为：ord_point_ratio<br>
 * 
 * @author pbuilder generated
 * @date 2022-08-11 10:22:49
 * @company sgy
 * @version 2.0
 */
@TableName("ord_point_ratio")
@ApiModel(description = "订单积分信息")
public class PointRatioEntity {

    /** ID */
	@ApiModelProperty("ID")
	protected String id;

    /** 订单号 */
	@ApiModelProperty("订单号")
	protected String orderNo;

    /** 商圈ID */
	@ApiModelProperty("商圈ID")
	protected String busdId;

    /** 商户ID */
	@ApiModelProperty("商户ID")
	protected String merchantId;

    /** 会员ID */
	@ApiModelProperty("会员ID")
	protected String memberId;

    /** 商圈获取积分 */
	@ApiModelProperty("商圈获取积分")
	protected Integer gainPoint;

    /** 商圈原始积分 */
	@ApiModelProperty("商圈原始积分")
	protected Integer beforePoint;

    /** 商铺获取积分 */
	@ApiModelProperty("商铺获取积分")
	protected Integer merchantGainPoint;

    /** 商铺原始积分 */
	@ApiModelProperty("商铺原始积分")
	protected Integer merchantBeforePoint;

    /** 会员获取积分 */
	@ApiModelProperty("会员获取积分")
	protected Integer memberGainPoint;

    /** 会员商圈原始积分 */
	@ApiModelProperty("会员商圈原始积分")
	protected Integer memberBeforePoint;

    /** 创建时间 */
	@ApiModelProperty("创建时间")
	protected LocalDateTime createdTime;

	/**
	 * 构造一个空订单积分信息实体对象
	 */
	public PointRatioEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个订单积分信息实体对象
	 * 
	 * @param other 其它对象
	 */
	public PointRatioEntity(PointRatioEntity other){
		super();
     	this.id = other.id;
     	this.orderNo = other.orderNo;
     	this.busdId = other.busdId;
     	this.merchantId = other.merchantId;
     	this.memberId = other.memberId;
     	this.gainPoint = other.gainPoint;
     	this.beforePoint = other.beforePoint;
     	this.merchantGainPoint = other.merchantGainPoint;
     	this.merchantBeforePoint = other.merchantBeforePoint;
     	this.memberGainPoint = other.memberGainPoint;
     	this.memberBeforePoint = other.memberBeforePoint;
     	this.createdTime = other.createdTime;
	}


	/**
	 * 获取ID
	 * 
	 * @return id ID
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置ID
	 * 
	 * @param id ID
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取订单号
	 * 
	 * @return orderNo 订单号
	 */
	public String getOrderNo() {
		return orderNo;
	}
  	
	/**
	 * 设置订单号
	 * 
	 * @param orderNo 订单号
	 */
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	/**
	 * 获取商圈ID
	 * 
	 * @return busdId 商圈ID
	 */
	public String getBusdId() {
		return busdId;
	}
  	
	/**
	 * 设置商圈ID
	 * 
	 * @param busdId 商圈ID
	 */
	public void setBusdId(String busdId) {
		this.busdId = busdId;
	}

	/**
	 * 获取商户ID
	 * 
	 * @return merchantId 商户ID
	 */
	public String getMerchantId() {
		return merchantId;
	}
  	
	/**
	 * 设置商户ID
	 * 
	 * @param merchantId 商户ID
	 */
	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}

	/**
	 * 获取会员ID
	 * 
	 * @return memberId 会员ID
	 */
	public String getMemberId() {
		return memberId;
	}
  	
	/**
	 * 设置会员ID
	 * 
	 * @param memberId 会员ID
	 */
	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	/**
	 * 获取商圈获取积分
	 * 
	 * @return gainPoint 商圈获取积分
	 */
	public Integer getGainPoint() {
		return gainPoint;
	}
  	
	/**
	 * 设置商圈获取积分
	 * 
	 * @param gainPoint 商圈获取积分
	 */
	public void setGainPoint(Integer gainPoint) {
		this.gainPoint = gainPoint;
	}

	/**
	 * 获取商圈原始积分
	 * 
	 * @return beforePoint 商圈原始积分
	 */
	public Integer getBeforePoint() {
		return beforePoint;
	}
  	
	/**
	 * 设置商圈原始积分
	 * 
	 * @param beforePoint 商圈原始积分
	 */
	public void setBeforePoint(Integer beforePoint) {
		this.beforePoint = beforePoint;
	}

	/**
	 * 获取商铺获取积分
	 * 
	 * @return merchantGainPoint 商铺获取积分
	 */
	public Integer getMerchantGainPoint() {
		return merchantGainPoint;
	}
  	
	/**
	 * 设置商铺获取积分
	 * 
	 * @param merchantGainPoint 商铺获取积分
	 */
	public void setMerchantGainPoint(Integer merchantGainPoint) {
		this.merchantGainPoint = merchantGainPoint;
	}

	/**
	 * 获取商铺原始积分
	 * 
	 * @return merchantBeforePoint 商铺原始积分
	 */
	public Integer getMerchantBeforePoint() {
		return merchantBeforePoint;
	}
  	
	/**
	 * 设置商铺原始积分
	 * 
	 * @param merchantBeforePoint 商铺原始积分
	 */
	public void setMerchantBeforePoint(Integer merchantBeforePoint) {
		this.merchantBeforePoint = merchantBeforePoint;
	}

	/**
	 * 获取会员获取积分
	 * 
	 * @return memberGainPoint 会员获取积分
	 */
	public Integer getMemberGainPoint() {
		return memberGainPoint;
	}
  	
	/**
	 * 设置会员获取积分
	 * 
	 * @param memberGainPoint 会员获取积分
	 */
	public void setMemberGainPoint(Integer memberGainPoint) {
		this.memberGainPoint = memberGainPoint;
	}

	/**
	 * 获取会员商圈原始积分
	 * 
	 * @return memberBeforePoint 会员商圈原始积分
	 */
	public Integer getMemberBeforePoint() {
		return memberBeforePoint;
	}
  	
	/**
	 * 设置会员商圈原始积分
	 * 
	 * @param memberBeforePoint 会员商圈原始积分
	 */
	public void setMemberBeforePoint(Integer memberBeforePoint) {
		this.memberBeforePoint = memberBeforePoint;
	}

	/**
	 * 获取创建时间
	 * 
	 * @return createdTime 创建时间
	 */
	public LocalDateTime getCreatedTime() {
		return createdTime;
	}
  	
	/**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 */
	public void setCreatedTime(LocalDateTime createdTime) {
		this.createdTime = createdTime;
	}

    public String toString() {
		return new StringBuilder().append("PointRatioEntity{").
			append("id=").append(id).
			append(",orderNo=").append(orderNo).
			append(",busdId=").append(busdId).
			append(",merchantId=").append(merchantId).
			append(",memberId=").append(memberId).
			append(",gainPoint=").append(gainPoint).
			append(",beforePoint=").append(beforePoint).
			append(",merchantGainPoint=").append(merchantGainPoint).
			append(",merchantBeforePoint=").append(merchantBeforePoint).
			append(",memberGainPoint=").append(memberGainPoint).
			append(",memberBeforePoint=").append(memberBeforePoint).
			append(",createdTime=").append(createdTime).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public PointRatioEntity copy() {
		return new PointRatioEntity(this);
	}

    /** ID */
	public static final String COL_ID = "id";

    /** 订单号 */
	public static final String COL_ORDER_NO = "order_no";

    /** 商圈ID */
	public static final String COL_BUSD_ID = "busd_id";

    /** 商户ID */
	public static final String COL_MERCHANT_ID = "merchant_id";

    /** 会员ID */
	public static final String COL_MEMBER_ID = "member_id";

    /** 商圈获取积分 */
	public static final String COL_GAIN_POINT = "gain_point";

    /** 商圈原始积分 */
	public static final String COL_BEFORE_POINT = "before_point";

    /** 商铺获取积分 */
	public static final String COL_MERCHANT_GAIN_POINT = "merchant_gain_point";

    /** 商铺原始积分 */
	public static final String COL_MERCHANT_BEFORE_POINT = "merchant_before_point";

    /** 会员获取积分 */
	public static final String COL_MEMBER_GAIN_POINT = "member_gain_point";

    /** 会员商圈原始积分 */
	public static final String COL_MEMBER_BEFORE_POINT = "member_before_point";

    /** 创建时间 */
	public static final String COL_CREATED_TIME = "created_time";
}
